import request from '@/utils/request'

// 查询站场发货、矿山发货至天高记录列表
export function listSitetoskyshipping(query) {
  return request({
    url: '/app/sitetoskyshipping/list',
    method: 'get',
    params: query
  })
}

// 查询站场发货、矿山发货至天高记录详细
export function getSitetoskyshipping(id) {
  return request({
    url: '/app/sitetoskyshipping/' + id,
    method: 'get'
  })
}

// 新增站场发货、矿山发货至天高记录
export function addSitetoskyshipping(data) {
  return request({
    url: '/app/sitetoskyshipping',
    method: 'post',
    data: data
  })
}

// 修改站场发货、矿山发货至天高记录
export function updateSitetoskyshipping(data) {
  return request({
    url: '/app/sitetoskyshipping',
    method: 'put',
    data: data
  })
}

// 删除站场发货、矿山发货至天高记录
export function delSitetoskyshipping(id) {
  return request({
    url: '/app/sitetoskyshipping/' + id,
    method: 'delete'
  })
}

// a产量数据字典
export function dictionlist(params) {
    return request({
      url: '/app/diction/list',
      method: 'get',
      params
    })
  }
// a产量数据字典新增
export function dictionAdd(data) {
  return request({
    url: '/app/diction',
    method: 'post',
    data
  })
}
// a产量数据字典删除
export function dictionDel(data) {
  return request({
    url: `/app/diction/${data.id}`,
    method: 'delete',
  })
}
